package control.panel
{
	import core.Control;
	import core.Model;
	import core.View;
	
	import utils.DisplayTool;
	
	import view.panel.AbsPanel;
	import view.panel.IPanel;
	
	public class PanelControl implements IPanelControl
	{
		protected var _control:Control = Control.getInstance();
		protected var _view:View = View.getInstance();
		protected var _model:Model = Model.getInstance();
		

		
		public function PanelControl()
		{
		}
		
		public function openPanel(panel:IPanel):void
		{
			_view.panelLayer.addChild(panel.self);	
		}
		
		public function closePanel(panel:IPanel):void
		{
			DisplayTool.removeChild(_view.panelLayer,panel.self);
		}
		
		
	}
}